package cn.jhz.learn.blog.component.shiro;

import org.apache.shiro.authc.AuthenticationToken;

import java.util.List;

public class JwtToken implements AuthenticationToken {
    private final String token;

    private final List<String> audience;

    public JwtToken(String token, List<String> audience) {
        this.token = token;
        this.audience = audience;
    }

    @Override
    public Object getPrincipal() {
        return audience;
    }

    @Override
    public Object getCredentials() {
        return token;
    }

}
